<?php

namespace DesignNew\Facade;

require('../vendor/autoload.php');
/**
 * 生产房门的工厂
 */
class FaClient{

    public function __construct()
    {
        $this->run();
    }

    public function run()
    {
        $computer = new ComputerFacade(new Computer());
        $computer->turnOn();
        $computer->turnOff();
    }
}

$client = new FaClient();